package myky.com.doctorapp.entity;

import java.util.List;

public class PreRequestEntuty {

    /**
     * type : 303
     * payLoad : {"formItems":[{"name":"oldPwd","type":"password","isRequired":true},{"name":"newPwd","type":"password","isRequired":true},{"name":"confirmNewPwd","type":"password","isRequired":true}]}
     */

    private int type;
    private PayLoadEntity payLoad;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public PayLoadEntity getPayLoad() {
        return payLoad;
    }

    public void setPayLoad(PayLoadEntity payLoad) {
        this.payLoad = payLoad;
    }

    public static class PayLoadEntity {
        private List<FormItemsEntity> formItems;

        public List<FormItemsEntity> getFormItems() {
            return formItems;
        }

        public void setFormItems(List<FormItemsEntity> formItems) {
            this.formItems = formItems;
        }

        public static class FormItemsEntity {
            /**
             * name : oldPwd
             * type : password
             * isRequired : true
             */

            private String name;
            private String type;
            private boolean isRequired;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public boolean isIsRequired() {
                return isRequired;
            }

            public void setIsRequired(boolean isRequired) {
                this.isRequired = isRequired;
            }
        }
    }
}
